﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using OgilvyOne.BLL;
using ECCIT.Business.Model;
using OgilvyOne.UKNow.Model;

namespace OgilvyOne.UKNow.BLL
{
    public class GenerateHtmlFactory
    {
        public static IGenerateHtml CreateInstance(int columnID, int langID)
        {
            IGenerateHtml bll = null;

            switch (columnID)
            {
                case 510:
                case 511:
                    bll = new EventsBLL(langID);
                    ((EventsBLL)bll).IsSpecial = 0;
                    break;
                case 502:
                case 467:
                    bll = new EventsBLL(langID);
                    ((EventsBLL)bll).IsSpecial = 1;
                    break;
                case 562:
                case 563:
                    bll = new SponsorBLL(langID);
                    break;
                case 520:
                case 529:
                    bll = new NewsBLL(langID);
                    break;
                default:
                    break;
            }

            return bll;
        }
    }
}
